<?php

/**
 * Subclass for representing a row from the 'tech_tags' table.
 *
 * 
 *
 * @package lib.model
 */ 
class Tags extends BaseTags
{

	public static function getTag($name)
	{
		$c = new Criteria();
		$c->add(TagsPeer::NAME, $name);
		$tag = TagsPeer::doSelectOne($c);
		if(!$tag)
		{
			$tag = new Tags();
			$tag->setName($name);
			$tag->save();
		}
		return $tag;
	}

}
